package com.travel.entity;



/**
 * 酒店评论实体类
 * 
 * @author zourenhe
 * @author 修改：zengbochao
 */

public class Comment {

	private Integer commentId;
	private String commentContent;
	private String commentDatetime;
	private Integer userId;
	private Integer hotelId;
	private Integer parentCommentId;
	private User user;
	private Hotel hotel;
	public Comment(Integer commentId, String commentContent, String commentDatetime, Integer userId, Integer hotelId,
			Integer parentCommentId, User user, Hotel hotel) {
		super();
		this.commentId = commentId;
		this.commentContent = commentContent;
		this.commentDatetime = commentDatetime;
		this.userId = userId;
		this.hotelId = hotelId;
		this.parentCommentId = parentCommentId;
		this.user = user;
		this.hotel = hotel;
	}
	public Comment() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Integer getCommentId() {
		return commentId;
	}
	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}
	public String getCommentContent() {
		return commentContent;
	}
	public void setCommentContent(String commentContent) {
		this.commentContent = commentContent;
	}
	public String getCommentDatetime() {
		return commentDatetime;
	}
	public void setCommentDatetime(String commentDatetime) {
		this.commentDatetime = commentDatetime;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getHotelId() {
		return hotelId;
	}
	public void setHotelId(Integer hotelId) {
		this.hotelId = hotelId;
	}
	public Integer getParentCommentId() {
		return parentCommentId;
	}
	public void setParentCommentId(Integer parentCommentId) {
		this.parentCommentId = parentCommentId;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Hotel getHotel() {
		return hotel;
	}
	public void setHotel(Hotel hotel) {
		this.hotel = hotel;
	}
	@Override
	public String toString() {
		return "Comment [commentId=" + commentId + ", commentContent=" + commentContent + ", commentDatetime="
				+ commentDatetime + ", userId=" + userId + ", hotelId=" + hotelId + ", parentCommentId="
				+ parentCommentId + ", user=" + user + ", hotel=" + hotel + "]";
	}
	

}
